/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MVC;

import java.awt.Color;
import javax.swing.JTabbedPane;

/**
 * ColorOnglet
 * Class specific for coloring the tabs of conversation
 * This class inherits a thread
 * @author Duy Duc, Metangmo
 */
public class ColorOnglet extends Thread {
    
    private JTabbedPane panelOnglet;

    public ColorOnglet(JTabbedPane panelOnglet) {
        this.panelOnglet = panelOnglet;
    }
     
    public void run() {
          
          while (true) {
               
              panelOnglet.setBackgroundAt(panelOnglet.getSelectedIndex(), Color.BLUE);
          }
          
    }
    
}
